package me.helllp.dake.iam.core.logic.auth.impl;

import me.helllp.dake.common.security.CryptoUtil;
import me.helllp.dake.core.bean.DakeAuthAccount;
import me.helllp.dake.iam.core.logic.auth.ITokenLogic;
import org.springframework.stereotype.Service;

@Service
public class TokenLogic implements ITokenLogic {
    @Override
    public String createToken() {
        return CryptoUtil.encode(CryptoUtil.genKey(256));
    }

    @Override
    public DakeAuthAccount verifyToken(String token) {
        return null;
    }

    @Override
    public boolean verifyCsrfToken(String token, String csrfToken) {
        return false;
    }
}
